import CommonLedgerStore from "./CommonLedgerStore";
import * as Apis from "../../apis/Api";
import { observable, action } from 'mobx';

class LedgerStore extends CommonLedgerStore {

	// constructor(props) {
	// 	super(props);
	// 	this.searchInputName = "cons_name";
	// }

	getTableData(requestParams, callBackFn) {
		Apis.getListFromCube(requestParams).then(data => {
			callBackFn(data);
		});
	}
	
	getRpData(requestParams, callBackFn) {
		Apis.getLedgerRpData(requestParams).then(data => {
			callBackFn(data);
		});
	}

	getInitInfoFromCube(requestParams,callBackFn){
		Apis.getInitInfoFromCube(requestParams).then(data => {
			callBackFn(data);
		});
	}
	
	getRightMenuFromCustom(requestParams,callBackFn){
		Apis.getRightMenuFromCustom(requestParams).then(data => {
			callBackFn(data);
		});
	}
	
	getConditionFromCube(requestParams,callBackFn){
		Apis.getConditionFromCube(requestParams).then(data => {
			callBackFn(data);
		});
    }
}

export default LedgerStore;